package com.icode.jaxws;

import javax.jws.WebService;
import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * User: ZhongGang
 * Date: 14-6-28
 * Time: 上午1:18
 */
@WebService(endpointInterface = "com.icode.jaxws.Function",
        targetNamespace = "http://bigdecimal.function.jaxws.icode.com")
public class BigDecimalFunction implements Function<BigDecimal> {

    @Override
    public BigDecimal add(BigDecimal t1, BigDecimal t2) {
        return t1.add(t2);
    }

    @Override
    public BigDecimal subtract(BigDecimal t1, BigDecimal t2) {
        return t1.subtract(t2);
    }

    @Override
    public BigDecimal multiply(BigDecimal t1, BigDecimal t2) {
        return t1.multiply(t2);
    }

    @Override
    public BigDecimal divide(BigDecimal t1, BigDecimal t2) {
        return t1.divide(t2);
    }
}
